﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;

namespace Paradox.Controllers
{
    public class MenuController : Controller
    {
        //
        // GET: /Menu/

        public JsonResult Index()
        {
            
            
            return Json("MenuElements",JsonRequestBehavior.AllowGet);
        }

        [Authorize]
        public ActionResult UserMenu()
        {
            return PartialView("UserMenu");
        }

        [Authorize(Roles = "elevateduser")]
        public ActionResult AdminMenu()
        {
            return PartialView("AdminMenu");
        }




    }
}
